package com.etc.entity;

import java.math.BigDecimal;
import java.util.Objects;

import org.springframework.stereotype.Component;

/**
 * (Gift)实体类
 *
 * @author makejava
 * @since 2021-10-18 22:40:07
 */
@Component
public class Gift  {
    private static final long serialVersionUID = -26965431402284726L;
    /**
     * 礼物
     */
    private String giftId;
    /**
     * 礼物名
     */
    private String giftName;
    /**
     * 礼物图片
     */
    private String giftImg;

    private String giftGif;


    

    /**
     * 礼物价格
     */
    private BigDecimal giftPrice;

    public String getGiftGif() {
        return giftGif;
    }

    public void setGiftGif(String giftGif) {
        this.giftGif = giftGif;
    }
    public String getGiftId() {
        return giftId;
    }

    public void setGiftId(String giftId) {
        this.giftId = giftId;
    }

    public String getGiftName() {
        return giftName;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    public String getGiftImg() {
        return giftImg;
    }

    public void setGiftImg(String giftImg) {
        this.giftImg = giftImg;
    }

    public BigDecimal getGiftPrice() {
        return giftPrice;
    }

    public void setGiftPrice(BigDecimal giftPrice) {
        this.giftPrice = giftPrice;
    }



    public Gift() {
    }

    public Gift(String giftId, String giftName, String giftImg, String giftGif, BigDecimal giftPrice) {
        this.giftId = giftId;
        this.giftName = giftName;
        this.giftImg = giftImg;
        this.giftGif = giftGif;
        this.giftPrice = giftPrice;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Gift gift = (Gift) o;
        return Objects.equals(giftId, gift.giftId) &&
                Objects.equals(giftName, gift.giftName) &&
                Objects.equals(giftImg, gift.giftImg) &&
                Objects.equals(giftGif, gift.giftGif) &&
                Objects.equals(giftPrice, gift.giftPrice);
    }

    @Override
    public int hashCode() {
        return Objects.hash(giftId, giftName, giftImg, giftGif, giftPrice);
    }

    @Override
    public String toString() {
        return "Gift{" +
                "giftId='" + giftId + '\'' +
                ", giftName='" + giftName + '\'' +
                ", giftImg='" + giftImg + '\'' +
                ", giftGif='" + giftGif + '\'' +
                ", giftPrice=" + giftPrice +
                '}';
    }
    public Gift(String giftName, String giftImg, String giftGif, BigDecimal giftPrice) {
        this.giftName = giftName;
        this.giftImg = giftImg;
        this.giftGif = giftGif;
        this.giftPrice = giftPrice;
    }
}

